const redirect = { 
  path: '/index/product', 
  redirect: '/index/product/ProductMix'  // 重定向的目标路径（默认子路由，根据实际需求修改）
};

// 路由路径与组件配置
const pagePath = {
  path: '/index/product',  
  component: import('@/views/product/Product.vue'),
  name: 'product',  
  children: [
    {
      path: '/index/product/ProductMix',
      component: import('@/views/product/ProductMix/ProductMix.vue'),
      name: 'ProductMix'
    },
    {
      path: '/index/product/ProductService',
      component: import('@/views/product/ProductService/ProductService.vue'), 
      name: 'ProductService'  // 子路由名称
    },
    {
      path: '/index/product/Setting',
      component: import('@/views/product/Setting/Setting.vue'), 
      name: 'Setting'  // 子路由名称
    }
  ]
};

const parent = '/index';  
const levelOne = false;

// 导出产品路由配置
const productRouter = {
  redirect,
  pagePath,
  parent,
  levelOne
};

export { productRouter };